home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / _weekDayStyleStyle.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  930 b   |  36 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _weekDayStyleStyle
  8.    {
  9.       public function _weekDayStyleStyle()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       public static function init(param1:IFlexModuleFactory) : void
  15.       {
  16.          var style:CSSStyleDeclaration = null;
  17.          var fbs:IFlexModuleFactory = param1;
  18.          style = StyleManager.getStyleDeclaration(".weekDayStyle");
  19.          if(!style)
  20.          {
  21.             style = new CSSStyleDeclaration();
  22.             StyleManager.setStyleDeclaration(".weekDayStyle",style,false);
  23.          }
  24.          if(style.defaultFactory == null)
  25.          {
  26.             style.defaultFactory = function():void
  27.             {
  28.                this.fontWeight = "bold";
  29.                this.textAlign = "center";
  30.             };
  31.          }
  32.       }
  33.    }
  34. }
  35.  
  36.